package com.ruoyi.system.domain.vo.productInfo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.domain.ProductInfo;
import lombok.Data;

/**
 * @ClassName : ProductInfoListVo
 * @Description :
 * @Author :
 * @Date: 2023-01-25 20:54
 */
@Data
public class ProductInfoListVo extends ProductInfo {

    private String productYearStr;
    private String productStartTimeStr;
    private String productEndTimeStr;
    private String productTypeStr;

    public String getProductYearStr() {
        return super.getProductYear().substring(0,4);
    }

    public String getProductStartTimeStr() {
        return super.getProductStartTime().substring(0,4);
    }

    public String getProductEndTimeStr() {
        return super.getProductEndTime().substring(0,4);
    }
}
